package com.biostime.springdraw.modules.sd.web;

import java.util.HashMap;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.biostime.springdraw.common.web.BaseController;
import com.biostime.springdraw.modules.sd.service.JssdkService;

/**
 * 前端控制器Controller
 * @author Phil
 * @version 2016-01-19
 */
@Controller
@RequestMapping(value = "demo")
public class DemoController extends BaseController {
	
	@Autowired
	private JssdkService jssdkService;
		
		
	@RequestMapping(value ="jssdkConifg")	
	public String jssdkConifg(HttpServletRequest request, HttpServletResponse response, Model model){			
		HashMap<String,Object> map = jssdkService.jssdk(request);		
		model.addAttribute("map", map);		
		return "modules/front/demo";
	}	
	
}
